import {get, post, del, put} from "@/apis/http/request";
import {Log} from "@/apis/model/system/LogModel";

/**
* 得到列表
* @param params
*/
export const getLogList = (params: any) => get("/log/list", params)

/**
* 得到分页列表
* @param params
*/
export const logPage = (params: any) => post("/log/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteLogById = (id: number) => del("/log/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertLog = (param: Log) => post("/log", param)

/**
* 更新数据
* @param param
*/
export const updateLog = (param: Log) => put("/log", param)